package com.net.xpay.core.dao;

import com.net.xpay.core.domain.PayTransSummary;
import com.net.xpay.core.enums.PayTransBatchStatus;
import com.net.common.dao.VersionedMapper;
import com.net.common.annotation.DataShard;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.time.LocalDateTime;
import java.util.List;

@DataShard("")
@Repository
public interface PayTransSummaryMapper extends VersionedMapper<Long, PayTransSummary> {
    List<PayTransSummary> listByStatuses(@Param("statuses") List<PayTransBatchStatus> statuses, @Param("minCreateTime") LocalDateTime minCreateTime, @Param("maxCreateTime") LocalDateTime maxCreateTime);
}
